package com.scx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.scx.entity.Follow;
import com.scx.result.Result;

/**
 * 关注服务类
 */
public interface FollowService extends IService<Follow> {

    /**
     * 是否关注
     * @param followUserId
     * @return
     */
    Result isFollow(Long followUserId);

    /**
     * 关注or取关
     * @param followUserId
     * @param isFollow
     * @return
     */
    Result follow(Long followUserId, Boolean isFollow);

    /**
     * 共同关注
     * @param id
     * @return
     */
    Result followCommons(Long id);
}
